const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token(state) {
  //   return state.user.token
  // }
  // 箭头函数简写
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  // $store.getters.staffPhoto
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 全局路由
  routes: state => state.permission.routes
}
export default getters
